package com.mj.adapters;

import android.content.Context;
import android.widget.RelativeLayout;

import com.aKZKyXWz.b.AdBanner;
import com.aKZKyXWz.b.RecevieAdListener;

/**
 * </pre>
 * 
 * @author BPO
 * @version 
 */ 
public class DoumobAdapter extends CustomizedAdapter implements RecevieAdListener{

	public static final int AFFLIATE_ID = 4;
    
	public DoumobAdapter(Object mjLayout, Object ration) {
		super(mjLayout, ration);
	}

    @Override
    public void onHandler(Context context, RelativeLayout parentLayout, String key1, String key2) {
        // TODO Auto-generated method stub
        AdBanner myAdView = new AdBanner(context);
        myAdView.setAppKey(key1);
        attachAdview2Layout(myAdView);
    }

    @Override
    public void onFailedToRecevieAd(AdBanner arg0) {
        // TODO Auto-generated method stub
        logDisplayAdFailed();
    }

    @Override
    public void onSucessedRecevieAd(AdBanner arg0) {
        // TODO Auto-generated method stub
        logDisplayAdSucceess();
    }
	


	
}